﻿using UnityEngine;
using System.Collections;

public static class Utils
{
	public static GameObject LoadPrefab(string name)
	{
		Object loadRes = Resources.Load("Prefabs/" + name);
		if (loadRes != null)
		{
			Object resource = GameObject.Instantiate(loadRes);
			return resource as GameObject;
		}
		Debug.Log("Cannot load prefab " + name);

		return null;
	}
}
